package com.yanqu.road.server.manager.tomb.entity;

import com.yanqu.road.pb.tomb.Tomb;

public class UserInfo {

    public static UserInfo newInstance() {
        UserInfo userInfo = new UserInfo();
        return userInfo;
    }

    public static UserInfo newInstance(Tomb.PlayerBaseTempMsg msg) {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserAliasId(msg.getUserAliasId());
        userInfo.setNickName(msg.getNickName());
        userInfo.setTitleId(msg.getTitleId());
        userInfo.setDecoration(msg.getDecoration());
        userInfo.setUnionName(msg.getUnionName());
        userInfo.setUnionUid(msg.getUnionUid());
        userInfo.setUnionAliasId(msg.getUnionAliasId());
        userInfo.setVipExp(msg.getVipExp());
        userInfo.setSex(msg.getSex());
        userInfo.setEarnSpeed(msg.getEarnSpeed());
        userInfo.setRegisterTime(msg.getRegisterTime());
        userInfo.setServerId(msg.getServerId());
        userInfo.setWorld(msg.getWorld());
        userInfo.setContinent(msg.getContinent());
        userInfo.setCountry(msg.getCountry());
        userInfo.setProvince(msg.getProvince());
        userInfo.setCity(msg.getCity());
        userInfo.setLastLoginTime(msg.getLastLoginTime());
        userInfo.setPrestige(msg.getPrestige());
        userInfo.setHideVipAndAddress(msg.getHideVipAndAddress());
        userInfo.setTotalAbility(msg.getTotalAbility());
        userInfo.setTotalIntimacy(msg.getTotalIntimacy());
        userInfo.setUnionHonerPoint(msg.getUnionHonerPoint());
        userInfo.setBadge(msg.getBadge());

        return userInfo;
    }

    private long userAliasId;  //玩家别名编号
    private String nickName = "";     //昵称
    private int titleId;      //身份
    private String decoration = "";   //装饰
    private String unionName = "";   //商会名称
    private String unionUid = "";   //商会唯一标识
    private long unionAliasId;//商会唯一标识
    private long vipExp;       //vip经验值
    private int sex;          //性别
    private String earnSpeed = "";    //赚速
    private long registerTime; //注册时间
    private long serverId;     //区服编号
    private String world = "";        //世界
    private String continent = "";    //洲
    private String country = "";      //国家
    private String province = "";     //省
    private String city = "";         //城市
    private long lastLoginTime;//最后登录时间
    private String prestige = "";      //声望
    private int hideVipAndAddress;//隐藏vip跟地址
    private String totalAbility = "";      // 门客总赚钱
    private String totalIntimacy = "";     // 美女总亲密
    private long unionHonerPoint;     // 商会荣誉点数
    private String badge = "";    //徽章

    public long getUserAliasId() {
        return userAliasId;
    }

    public void setUserAliasId(long userAliasId) {
        this.userAliasId = userAliasId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getTitleId() {
        return titleId;
    }

    public void setTitleId(int titleId) {
        this.titleId = titleId;
    }

    public String getDecoration() {
        return decoration;
    }

    public void setDecoration(String decoration) {
        this.decoration = decoration;
    }

    public String getUnionName() {
        return unionName;
    }

    public void setUnionName(String unionName) {
        this.unionName = unionName;
    }

    public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        this.unionUid = unionUid;
    }

    public long getUnionAliasId() {
        return unionAliasId;
    }

    public void setUnionAliasId(long unionAliasId) {
        this.unionAliasId = unionAliasId;
    }

    public long getVipExp() {
        return vipExp;
    }

    public void setVipExp(long vipExp) {
        this.vipExp = vipExp;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getEarnSpeed() {
        return earnSpeed;
    }

    public void setEarnSpeed(String earnSpeed) {
        this.earnSpeed = earnSpeed;
    }

    public long getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(long registerTime) {
        this.registerTime = registerTime;
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public String getWorld() {
        return world;
    }

    public void setWorld(String world) {
        this.world = world;
    }

    public String getContinent() {
        return continent;
    }

    public void setContinent(String continent) {
        this.continent = continent;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public long getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getPrestige() {
        return prestige;
    }

    public void setPrestige(String prestige) {
        this.prestige = prestige;
    }

    public int getHideVipAndAddress() {
        return hideVipAndAddress;
    }

    public void setHideVipAndAddress(int hideVipAndAddress) {
        this.hideVipAndAddress = hideVipAndAddress;
    }

    public String getTotalAbility() {
        return totalAbility;
    }

    public void setTotalAbility(String totalAbility) {
        this.totalAbility = totalAbility;
    }

    public String getTotalIntimacy() {
        return totalIntimacy;
    }

    public void setTotalIntimacy(String totalIntimacy) {
        this.totalIntimacy = totalIntimacy;
    }

    public long getUnionHonerPoint() {
        return unionHonerPoint;
    }

    public void setUnionHonerPoint(long unionHonerPoint) {
        this.unionHonerPoint = unionHonerPoint;
    }

    public String getBadge() {
        return badge;
    }

    public void setBadge(String badge) {
        this.badge = badge;
    }
}
